const group = {
  groups (parent, { name }, ctx, info) {
    return ctx.db.query.groups({
      where: {
        name_contains: name
      }
    }, info)
  }
}

module.exports = { group }
